package com.galaxy.service.dto.system.role;

import com.galaxy.service.entity.system.Permission;
import java.util.List;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;
import lombok.Data;

/**
 * 添加角色dto
 * @author caijinbang
 * @date 2018/10/27 18:15
 */
@Data
public class RoleAddDto {

    @NotBlank(message = "姓名不能为空")
    private String name;

    @Size(min = 1,message = "请至少选择一个权限资源")
    private List<Permission> permissions;

}
